//
//  AppDelegate.m
//  KKRequestDemo
//
//  Created by Mac mini on 16/1/25.
//  Copyright © 2016年 JuniorCodingPerson. All rights reserved.
//

#import "AppDelegate.h"

#import "KKNetworkManager.h"

@interface AppDelegate ()

@end

@implementation AppDelegate


- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    // Override point for customization after application launch.
    
//    KKNetworkRequest *loginRequest = [KKNetworkRequest loginRequestOfAccount: nil password: nil];
//    [KKNetworkManager sendPostRequest: loginRequest success:^(KKNetworkResponse *response) {
//        NSLog(@"response = %@", response.responseObject);
//    } faile:^(NSString *error) {
//        NSLog(@"error = %@", error);
//    }];
    
//    KKNetworkRequest *catalogsRequest = [KKNetworkRequest catalogsRequest];
//    catalogsRequest.debug = true;
//    [KKNetworkManager sendPostRequest: catalogsRequest success:^(KKNetworkResponse *response) {
//        NSLog(@"response = %@", response.responseObject);
//    } faile:^(NSString *error) {
//        NSLog(@"error = %@", error);
//    }];

//    KKNetworkRequest *newQuestionnaireItemListRequest = [KKNetworkRequest newQuestionnaireItemListRequest];
//    newQuestionnaireItemListRequest.debug = true;
//    [KKNetworkManager sendPostRequest: newQuestionnaireItemListRequest success:^(KKNetworkResponse *response) {
//        NSLog(@"response = %@", response.responseObject);
//    } faile:^(NSString *error) {
//        NSLog(@"error = %@", error);
//    }];
    
//    KKNetworkRequest *downloadRequest = [KKNetworkRequest downloadQuestionnaireItemListWithIds: @[@"400100000000001"]];
//    downloadRequest.debug = true;
//    [KKNetworkManager sendPostRequest: downloadRequest success:^(KKNetworkResponse *response) {
//        NSLog(@"response = %@", response);
//    } faile:^(NSString *error) {
//        NSLog(@"error = %@", error);
//    }];
    
    KKNetworkRequest *uploadFileRequest = [KKNetworkRequest signRequest];
    uploadFileRequest.debug = true;
    [KKNetworkManager sendPostRequest: uploadFileRequest success:^(KKNetworkResponse *response) {
        
    } faile:^(NSString *error) {
        NSLog(@"error = %@", error);
    }];
    
//    [KKNetworkManager sendPostRequestWithAFNetworking: uploadFileRequest success:^(KKNetworkResponse *response) {
//        
//    } faile:^(NSString *error) {
//        
//    }];
    
    return YES;
}

@end
